package com.mobilad.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mobilad.dao.*;
import com.mobilad.model.User;

@Service("userService")
public class UserServiceImp implements UserService {

	@Autowired
	private UserDAO userDAO;
	
	
	public UserDAO getUserDAO() {
		return userDAO;
	}


	public void setUserDAO(UserDAO userDAO) {
		this.userDAO = userDAO;
	}


	public boolean saveUser(User user){
		return userDAO.saveUser(user) ;
	}
	
	 public  boolean isMobileNr(String mob_nr){
		 return userDAO.isMobileNr(mob_nr) ;
	 }
	 public User getUser(String mob, String pwd){
		 return userDAO.getUser(mob, pwd);
	 }
}
